package com.poi.java;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description:
 * @Auther:
 * @Date: 2023/6/13 11:25
 */
public class CC {

    public static void main(String[] args) throws ParseException {
//        System.out.println(new SimpleDateFormat("yyyy年MM月dd日").format(new Date()));

//        String a ="dfa33.22";
//        String s = a.replaceAll("[^\\d.\\d]", "");
//        int c = 0;
//        int d = c <=1000 ? 100:  c<2000 ? 2000 : c<=3000 ? 10000 :20000;
//
//        String g = c <=1000 ? a:  c<2000 ? s : c<=3000 ? s :s;
//        System.out.println(s);

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
        String a = "2023年02月02日";
//        Date parse = sdf.parse();
        String format = sdf.format(new Date());
        Date parse = sdf.parse(a);
        System.out.println(parse);
        System.out.println(format);
    }
}
